<?php
namespace Admin\Controller;
use Think\Controller;

class LoginController extends Controller{
    public function index(){
        //判断是否登录了
        if(session('?admin_user')){
            echo '已设置SESSION';
        }else{
            $this->display();
        }
    }
}